﻿using WeDonekRpc.Helper.Validate;
namespace WeDonekRpc.Model
{
    public class ContainerInfo
    {
        /// <summary>
        /// 容器组编号
        /// </summary>
        public string Number
        {
            get;
            set;
        }
        /// <summary>
        /// 容器Id
        /// </summary>
        [NullValidate("rpc.container.id.null")]
        public string ContainerId
        {
            get;
            set;
        }
        /// <summary>
        /// 默认端口号
        /// </summary>
        [NumValidate("rpc.port.error", 1, int.MaxValue)]
        public int? DefPort
        {
            get;
            set;
        }
    }
}
